Set
Function
This API is used to set parameter for Event Settings(cloud dedicated) > Settings .
Request Message
See Event Settings(cloud dedicated) > Settings > Range > Parameter Description > Table 1 for parameter description
Sample:
POST /API/Event/SettingConfig/Set HTTP/1.1
{
"version": "1.0",
"data": {
"channel_info": {"CH1": {
"switch": false,
"iva_lines": true,
"face_attribute": false,
"face_enhance": false,
"sensitivity": 1,
"snap_mode": "OptimalMode",
"snap_num": "1",
"snap_frequency": 2,
"face_angle": "FrontalView",
"roll_range": 30,
"pitch_range": 30,
"yaw_range": 45,
"picture_quality": 100,
"min_pixel": 64,
"max_pixel": 640,
"detection_mode": "HybridMode",
"rule_info": {
"rule_number1": {
"rule_switch": true,
"point_num": [
3,
8
],
"detection_range": "FullScreen",
"rule_type": "A->B",
"trigger_mode": "Rect",
"rule_line": {
"x1": 322,
"y1": 30,
"x2": 322,
"y2": 545
},
"rule_rect": {
"x1": 30,
"y1": 30,
"x2": 30,
"y2": 545,
"x3": 675,
"y3": 545,
"x4": 675,
"y4": 30,
"x5": 675,
"y5": 30,
"x6": 675,
"y6": 30,
"x7": 675,
"y7": 30,
"x8": 675,
"y8": 30
},
"rule_number": "rule_number1",
"rule_kind": "Rect"
},
"rule_number2": {
"rule_switch": false,
"point_num": [
3,
8
],
"detection_range": "FullScreen",
"rule_rect": {
"x1": 0,
"y1": 0,
"x2": 0,
"y2": 0,
"x3": 0,
"y3": 0,
"x4": 0,
"y4": 0,
"x5": 0,
"y5": 0,
"x6": 0,
"y6": 0,
"x7": 0,
"y7": 0,
"x8": 0,
"y8": 0
}
},
"rule_number3": {
"rule_switch": false,
"point_num": [
3,
8
],
"detection_range": "FullScreen",
"rule_rect": {
"x1": 0,
"y1": 0,
"x2": 0,
"y2": 0,
"x3": 0,
"y3": 0,
"x4": 0,
"y4": 0,
"x5": 0,
"y5": 0,
"x6": 0,
"y6": 0,
"x7": 0,
"y7": 0,
"x8": 0,
"y8": 0
}
},
"rule_number4": {
"rule_switch": false,
"point_num": [
3,
8
],
"detection_range": "FullScreen",
"rule_rect": {
"x1": 0,
"y1": 0,
"x2": 0,
"y2": 0,
"x3": 0,
"y3": 0,
"x4": 0,
"y4": 0,
"x5": 0,
"y5": 0,
"x6": 0,
"y6": 0,
"x7": 0,
"y7": 0,
"x8": 0,
"y8": 0
}
}
},
"draw_add_btn": {
"visible": true,
"rule_rect": [
{
"x1": 10,
"y1": 144,
"x2": 90,
"y2": 10,
"x3": 262,
"y3": 10,
"x4": 342,
"y4": 144,
"x5": 262,
"y5": 278,
"x6": 90,
"y6": 278,
"x7": 90,
"y7": 278,
"x8": 90,
"y8": 278
},
{
"x1": 362,
"y1": 144,
"x2": 442,
"y2": 10,
"x3": 614,
"y3": 10,
"x4": 694,
"y4": 144,
"x5": 614,
"y5": 278,
"x6": 442,
"y6": 278,
"x7": 442,
"y7": 278,
"x8": 442,
"y8": 278
},
{
"x1": 10,
"y1": 430,
"x2": 90,
"y2": 296,
"x3": 262,
"y3": 296,
"x4": 342,
"y4": 430,
"x5": 262,
"y5": 564,
"x6": 90,
"y6": 564,
"x7": 90,
"y7": 564,
"x8": 90,
"y8": 564
},
{
"x1": 362,
"y1": 430,
"x2": 442,
"y2": 296,
"x3": 614,
"y3": 296,
"x4": 694,
"y4": 430,
"x5": 614,
"y5": 564,
"x6": 442,
"y6": 564,
"x7": 442,
"y7": 564,
"x8": 442,
"y8": 564
}
],
"rule_line": [{
"x1": 322,
"y1": 30,
"x2": 322,
"y2": 546
}]
},
"drawline_ABRegion_rule": "leftB_rightA",
"chn_index": "CH1",
"page": "chn_fd",
"curPage": "smart_setting",
"isAiPage": true,
"rule": {
"rule_switch": true,
"point_num": [
3,
8
],
"detection_range": "FullScreen",
"rule_type": "A->B",
"trigger_mode": "Rect",
"rule_line": {
"x1": 322,
"y1": 30,
"x2": 322,
"y2": 545
},
"rule_rect": {
"x1": 30,
"y1": 30,
"x2": 30,
"y2": 545,
"x3": 675,
"y3": 545,
"x4": 675,
"y4": 30,
"x5": 675,
"y5": 30,
"x6": 675,
"y6": 30,
"x7": 675,
"y7": 30,
"x8": 675,
"y8": 30
},
"rule_number": "rule_number1",
"rule_kind": "Rect"
},
"detection_range": "FullScreen",
"pixelRect": {
"minPixelRectMin": 32,
"minPixelRectMax": 1080,
"minPixelRectColor": "rgb(0,255,0)",
"minPixelPointX": 40,
"minPixelPointY": 40,
"maxPixelRectMin": 320,
"maxPixelRectMax": 1080,
"maxPixelRectColor": "rgb(0,255,0)",
"maxPixelPointX": 20,
"maxPixelPointY": 20,
"pixelRectScaleWidth": 1920,
"pixelRectScaleHeight": 1080
}
}},
"channel": "CH1",
"ability": "FaceDetection"
}
}
Response Message
Sampel:
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": "success",
"data": {}
}
Error Code
See Response Messages Body and Common error_code for more information.